package com.tencreat.domain.account;
import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.enums.account.RichTextTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.tencreat.common.core.domain.BaseEntity;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 【请填写功能名称】对象 common_rich_text
 *
 * @author tencreat
 * @date 2021-09-11
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("common_rich_text")
public class CommonRichText extends BaseEntity<CommonRichText>{
    private static final long serialVersionUID = 1L;


    /** 文本信息 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 类型,关联：RichTextTypeEnum */
    @Excel(name = "类型,关联：RichTextTypeEnum")
    @ApiModelProperty(value= "类型,关联：RichTextTypeEnum",notes = "com.tencreat.common.enums.account.RichTextTypeEnum")
    @TableField("`type`")
    private RichTextTypeEnum type;


    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty(value= "标题")
    @TableField("`title`")
    private String title;


    /** 文本内容 */
    @Excel(name = "文本内容")
    @ApiModelProperty(value= "文本内容")
    @TableField("`content`")
    private String content;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;






    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
